package com.mszlu.blog.service;

import com.mszlu.blog.vo.ArticleVo;
import com.mszlu.blog.vo.Result;
import com.mszlu.blog.vo.params.ArticleParam;
import com.mszlu.blog.vo.params.PageParams;

/**
 * @author wfjytd
 * @create 2022-03-06 16:33
 */
public interface ArticleService {
    Result listArticle(PageParams pageParams);

    Result hotArticle(int limit);

    Result newArticle(int limit);

    Result listArchives();

    ArticleVo findArticleById(Long articleId);

    Result publish(ArticleParam articleParam);

    Result listArticleById(PageParams pageParams);

    Result deleteById(Long id);
}
